libxc/NetBSD: return ioctl return value on error
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 19 Jan 2012 10:17:35 +0000 (11:17 +0100)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Thu, 19 Jan 2012 10:17:35 +0000 (11:17 +0100)
commit9e0b821475bca0f67e477b1f69a55def068f5800
tree37dbbcc3b04c280adffef5df3c580f250e0d03c4
parentb21046d2eaad49c6e943c1618ba07a9b7da9cd0d
libxc/NetBSD: return ioctl return value on error

NetBSD libxc hypercall implementation was returning -errno on error,
instead of the actual error value from ioctl. Returning error is
easier to understand, and the caller can always check errno.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Campbell <ian.campbell.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Reported-by: Olaf Hering <olaf@aepfle.de>
tools/libxc/xc_netbsd.c